home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 26 / Cream of the Crop 26.iso / program / ddj0897.zip / CCDBMS.ZIP / ORACLE.CPP < prev    next >
C/C++ Source or Header  |  1997-03-18  |  2KB  |  62 lines

  1. // =================================================================
  2. // Oracle.cpp
  3. // =================================================================
  4. // Harold Kasperink / John Dekker 
  5. // Dr. Dobb's Journal 1997
  6. // =================================================================
  7. // This file should contain the code that you have generated
  8. // with an embedded C/C++ compiler for SQL
  9. // =================================================================
  10. #include "oracle.h"
  11.  
  12. ////////////////////////////////////////////////////////////////////
  13. // DB_Connect
  14. ////////////////////////////////////////////////////////////////////
  15. // Connect with database session to oracle 
  16. // with username/password@server in pszUsr
  17. ////////////////////////////////////////////////////////////////////
  18. long DB_Connect(const char *pszUsr) 
  19. {
  20.     return 0;
  21. }
  22.  
  23. ////////////////////////////////////////////////////////////////////
  24. // DB_Disconnect
  25. ////////////////////////////////////////////////////////////////////
  26. // Disconnect from oracle
  27. ////////////////////////////////////////////////////////////////////
  28. long DB_Disconnect()
  29. {
  30.     return 0;
  31. }
  32.  
  33. ////////////////////////////////////////////////////////////////////
  34. // DB_Commit
  35. ////////////////////////////////////////////////////////////////////
  36. // Commit transaction for database session 
  37. ////////////////////////////////////////////////////////////////////
  38. long DB_Commit(void *pCmd)
  39. {
  40.     return 0;
  41. }
  42.  
  43. ////////////////////////////////////////////////////////////////////
  44. // DB_Rollback
  45. ////////////////////////////////////////////////////////////////////
  46. // Rollback transaction for database session
  47. ////////////////////////////////////////////////////////////////////
  48. long DB_Rollback(void *pCmd)
  49. {
  50.     return 0;
  51. }
  52.  
  53. ////////////////////////////////////////////////////////////////////
  54. // DB_FindPerson
  55. ////////////////////////////////////////////////////////////////////
  56. // Find a if person exists in the database
  57. ////////////////////////////////////////////////////////////////////
  58. long DB_FindPerson(void *pCmd, char *pszFirstName, char *pszLastName)
  59. {
  60.     return 0;
  61. }
  62.